package com.shuwen.gcdj.common.util.pojo;

public class SignedHeader {
    private String appKey;
    private String nonce;
    private String timestamp;
    private String signature;

    public String getAppKey() {
        return this.appKey;
    }

    public String getNonce() {
        return this.nonce;
    }

    public String getTimestamp() {
        return this.timestamp;
    }

    public String getSignature() {
        return this.signature;
    }

    public void setappKey(final String appKey) {
        this.appKey = appKey;
    }

    public void setNonce(final String nonce) {
        this.nonce = nonce;
    }

    public void setTimestamp(final String timestamp) {
        this.timestamp = timestamp;
    }

    public void setSignature(final String signature) {
        this.signature = signature;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SignedHeader)) {
            return false;
        } else {
            SignedHeader other = (SignedHeader) o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59:
                {
                    Object this$appKey = this.getAppKey();
                    Object other$appKey = other.getAppKey();
                    if (this$appKey == null) {
                        if (other$appKey == null) {
                            break label59;
                        }
                    } else if (this$appKey.equals(other$appKey)) {
                        break label59;
                    }

                    return false;
                }

                Object this$nonce = this.getNonce();
                Object other$nonce = other.getNonce();
                if (this$nonce == null) {
                    if (other$nonce != null) {
                        return false;
                    }
                } else if (!this$nonce.equals(other$nonce)) {
                    return false;
                }

                Object this$timestamp = this.getTimestamp();
                Object other$timestamp = other.getTimestamp();
                if (this$timestamp == null) {
                    if (other$timestamp != null) {
                        return false;
                    }
                } else if (!this$timestamp.equals(other$timestamp)) {
                    return false;
                }

                Object this$signature = this.getSignature();
                Object other$signature = other.getSignature();
                if (this$signature == null) {
                    if (other$signature != null) {
                        return false;
                    }
                } else if (!this$signature.equals(other$signature)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof SignedHeader;
    }

    public int hashCode() {
        int result = 1;
        Object $appKey = this.getAppKey();
        result = result * 59 + ($appKey == null ? 43 : $appKey.hashCode());
        Object $nonce = this.getNonce();
        result = result * 59 + ($nonce == null ? 43 : $nonce.hashCode());
        Object $timestamp = this.getTimestamp();
        result = result * 59 + ($timestamp == null ? 43 : $timestamp.hashCode());
        Object $signature = this.getSignature();
        result = result * 59 + ($signature == null ? 43 : $signature.hashCode());
        return result;
    }

    public String toString() {
        return "SignedHeader(appKey=" + this.getAppKey() + ", nonce=" + this.getNonce() + ", timestamp=" + this.getTimestamp() + ", signature=" + this.getSignature() + ")";
    }

    public SignedHeader() {
    }

    public SignedHeader(final String appKey, final String nonce, final String timestamp, final String signature) {
        this.appKey = appKey;
        this.nonce = nonce;
        this.timestamp = timestamp;
        this.signature = signature;
    }
}
